package top.whysu.edevice.dto.emqx;

/**
 * mqtt基础实体类
 */
public class MqttBaseEntity {
    /**
     * 请求方法（命令字）
     */
    private String method;
    /**
     * 源地址（源设备did)
     */
    private String src;
    /**
     * 目的地址（目的设备did）
     */
    private String dst;
    /**
     * 协议版本号
     */
    private String version;
    /**
     * 会话id
     */
    private long seq;

    public MqttBaseEntity() {
    }

    public MqttBaseEntity(String method, String src, String dst, String version, long seq) {
        this.method = method;
        this.src = src;
        this.dst = dst;
        this.version = version;
        this.seq = seq;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getDst() {
        return dst;
    }

    public void setDst(String dst) {
        this.dst = dst;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public long getSeq() {
        return seq;
    }

    public void setSeq(long seq) {
        this.seq = seq;
    }
}
